﻿<!DOCTYPE html>
<html>

<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/content/screen.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/scripts/jqueryui/css/theme/jquery-ui-1.8.16.custom.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/content/site.css")" rel="stylesheet" type="text/css" />
    @if (String.IsNullOrWhiteSpace(ViewData["CustomCSS"] as string))
    {
    <link href="@Url.Content("~/content/default.css")" rel="stylesheet" type="text/css" />
    }
    else
    {
    <link href="@Url.Content(ViewData["CustomCSS"].ToString())" rel="stylesheet" type="text/css" />
    }
    <script src="@Url.Content("~/scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/scripts/jqueryui/js/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/scripts/jquery.meio.mask.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/scripts/jwplayer/jwplayer.js")" type='text/javascript' ></script>
    <script src="@Url.Content("~/scripts/site.js")" type="text/javascript"></script>
    <style>
        body
        {
        @if (!String.IsNullOrWhiteSpace(ViewData["CustomBackground"] as string))
        {
            <text>background-image:url('@ViewData["CustomBackground"]');</text>
        }
        }
    </style>
    <script type="text/javascript">
        $(function () {
            setTimeout(function () {
                $("input:submit,input:button,button").button();
            }, 0);
        });
        $(document).ajaxComplete(function () {
            $("input:submit,input:button,button").button();
        });
    </script>
    @RenderSection("head", required: false)
</head>
<body>
    <div class="container">
        <br />
        @if (Session["TipoUsuario"] as string == "A")
        { 
            <span id="menu" class="menu">
	            <a href="@Url.Action("List", "Avaliacao")">Avaliações</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                <a href="@Url.Action("List", "Usuario")">Usuários</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                <a href="@Url.Action("List", "Cliente")">Clientes</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                <a href="#">Relatórios</a>&nbsp;&nbsp;
                <a href="@Url.Action("Index", "Sair")" style="float:right;">Sair</a>
            </span>
            <br />
        }
        @if (Session["TipoUsuario"] as string == "G")
        { 
            <span id="menu" class="menu">
                <a href="@Url.Action("Index", "Sair")" style="float:right;">Sair</a>
	            <a href="javascript:history.go(-1);" style="float:right;padding-right:20px;">Voltar</a>
                
                
            </span>
            <br />
        }
        <br />
        @RenderBody()
    </div>
    <div id="dialogo_mensagem" title="Mensagem" style="display:none; text-align:left; ">
        <div id="dialogo_mensagem_texto" style="min-height:100px;"></div>
    </div>
</body>
</html>
